set(HEADERS
    Inc/U2_i2c.h
    Inc/U2_E1.h
    Inc/U2_E3.h
    Inc/U2_S1.h
        Inc/U2_S4.h
        )

set(SOURCES
        Src/U2_i2c.c
        Src/U2_E1.c
        Src/U2_E3.c
        Src/U2_S1.c
        Src/U2_S5.c
        Src/U2_S4.cpp
        )

add_library(U2Library
        ${HEADERS}
        ${SOURCES}
        )

target_include_directories(MyLibrary
        PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Inc
        /usr/arm-linux-gnueabi/include
        )
